package com.lzjt.mapper;

import com.lzjt.entity.DrugEntity;
import com.lzjt.model.DrugModel;
import com.lzjt.param.DrugParam;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface DrugMapper {
    List<DrugModel> getAllDrug(String name);
    int saveDrug(DrugParam drugParam);
    int updateDrugById(DrugEntity sale);
    int insertSalePlace(Long drugId,Long[] saleIds);
    int deleteSaleByDrugId(Long drugId);
    int deleteDrugById(long drugId);
}
